package stanaGUI.Hierarchical;

import java.util.ArrayList;
import java.util.List;

public class MainTestHierarchicalClustering {
	
	public static void main(String []args){
		// Array list for the input data
		List<Item> input = new ArrayList<Item>();
		input.add(new Item(2,5));  
		input.add(new Item(2,7));
		input.add(new Item(3,9));
		input.add(new Item(7,10));
		input.add(new Item(7, 14));
		input.add(new Item(8,23));
		input.add(new Item(9,23));
		input.add(new Item(3,34));
		
		System.out.println("hierarchical with median distance, PARAM = max distance between clusters");
		// run the algorithm
		AlgoHierarchicalClustering algoH = new AlgoHierarchicalClustering(2.0,5.6);
		List<Cluster> clusters = algoH.runAlgorithm(input);
		// print the results
		for(Cluster cluster : clusters){
			System.out.println(cluster.toString());
		}

	}
	
	
}
